#include <libpmemobj.h>
#include <stdlib.h>
#include <stdio.h>

/* size of the pmemobj pool -- 1 GB */
#define POOL_SIZE ((size_t)(1 << 30))

/* name of our layout in the pool */
#define LAYOUT_NAME "example_layout"

int main(int argc, char *argv[])
{
	const char path[] = "/mnt/pmem1/sungan/test_pmem/pmdk/dst_file";
	PMEMobjpool *pop;
	/* create the pmemobj pool or open it if it already exists */
	pop = pmemobj_create(path, LAYOUT_NAME, POOL_SIZE, 0666);
	if (pop == NULL)
	    pop = pmemobj_open(path, LAYOUT_NAME);
	if (pop == NULL) {
		perror(path);
		exit(1);
	}
	pmemobj_close(pop);
	return 0;
}